namespace Maple.Branch.Settings.Services
{
    using System.Threading.Tasks;
    using IServices;
    using Volo.Abp.DependencyInjection;
    using Volo.Abp.Settings;

    public class AbpSettingStore : ISettingStore, ITransientDependency
    {
        protected IBranchSettingStore Store { get; }

        public AbpSettingStore(IBranchSettingStore store)
        {
            Store = store;
        }

        public virtual Task<string> GetOrNullAsync(string name, string providerName, string providerKey)
        {
            return Store.GetOrNullAsync(name, providerName, providerKey);
        }
    }
}
